<template>
    <h2>我的</h2>
</template>

<script>
    export default {
        name: "Mind"
    }
    new Promise((resolve, reject) => {
        //模拟异步操作
        setTimeout(() => {
            console.log('aaa')
            resolve('Hello Promise')
        }, 1000)
    }).then(data => {
        console.log(data)
        try {
            1/0
        } catch (e) {
            console.log(e)
            throw  'error message'
        }

        return (data + 'asd')
    }).then(data => {
        console.log(data)
    }).catch(err => {
        console.log(err)
    })
</script>

<style scoped>

</style>